export default {
	namespaced: true,
	
	state:{
		cart: uni.getStorageSync("cart_data") || [],    // 购物车
	},
	
	mutations: {
		// 设置-购物车
		["SET_cart"] (state, payload){ 
			state.cart = payload
			uni.setStorageSync("cart_data", payload) 
		},
	}
}